<form id="edit-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Name')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-name" class="form-control" name="row[name]" type="text" value="{$row.name|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('查看所有')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input  id="c-is_all" name="row[is_all]" type="hidden" value="0">
            <a href="javascript:;" data-toggle="switcher" data-confirm="确认切换开关？" class="btn-switcher" data-input-id="c-is_all" data-yes="1" data-no="0" >
            <i class="fa fa-toggle-on text-success {eq name="$row.is_all" value="0"}fa-flip-horizontal text-gray{/eq} fa-2x"></i>
            </a>
        </div>
    </div>

    

    <div class="form-group" data-favisible="is_all=0">
        <label class="control-label col-xs-12 col-sm-2">{:__('查看')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-mobile" class="form-control selectpage"  name="row[mobile]" type="text"  data-field="nickname"  data-primary-key="mobile"   data-source="user/user/index"  data-multiple="true" value="{$row.auth|htmlentities}">
        </div>
    </div>
        
    <div class="form-group layer-footer">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8">
            <button type="submit" class="btn btn-primary btn-embossed disabled">{:__('OK')}</button>
            <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
        </div>
    </div>
</form>
